<template>
  <view class="content">
	  <Navbar>
	  	登录
	  </Navbar>
	<view @click="loginMethods()" class="text-area">
		<text class="title">进入首页</text>
	</view>
    <view @click=" jumpHome()" class="text-area">
      <text class="title">进入测试页</text>
    </view>
	
    <view @click="jumpsubpackage()" class="text-area">
      <text class="title">进入分包页</text>
    </view>
    
	<view @click="addToken()" class="text-area">
	  <text class="title">登录</text>
	</view>
	<FildCard></FildCard>
  </view>
</template>

<script setup lang="ts">
const loginMethods = (() =>{
	console.log('23232')
    uni.navigateTo({
        url:'/pages/index/index'
    })
})
const jumpsubpackage  = (() =>{
    uni.navigateTo({
        url:'/subpackage/mine/index'
    })
})
const jumpHome = (()=>{
	uni.navigateTo({
		url:'/pages/pageTest/index'
	})
})

const addToken = (()=>{
	uni.setStorageSync('userInfo', { token: '123456' })
	uni.$u.toast('登录成功，现在可正常进入其他页面')
})
</script>

<style lang="scss" scoped>
	.text-area{
		margin-top: 30px;
	}
</style>
